package com.netbao.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
    @RequestMapping("/main")
    public String main(){
        return "main";
    }
    @RequestMapping("/login")
    public String login(){
        return "login";
    }
    @RequestMapping("/first")
    public String first(){
        return "first";
    }

    @RequestMapping("/sys/role")
    public String role(){
        return "/sys/role";
    }

    @RequiresPermissions(value = "sys:user:manage")
    @RequestMapping("/sys/user")
    public String user(){
        return "/sys/user";
    }

    @RequestMapping("/sys/enterprise")
    public String enterprise(){
        return "/sys/enterprise";
    }

    @RequestMapping("/pro/project")
    public String project(){
        return "/pro/project";
    }

    @RequestMapping("/pro/wayBill")
    public String wayBill(){
        return "/pro/wayBill";
    }

    @RequestMapping("/pro/addwayBill")
    public String addwayBill(){
        return "/pro/addwaybill";
    }
}
